package com.niuwa.p2p.dao.custservice;
import java.util.List;
import java.util.Map;
import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.custservice.CustServiceUser;
import com.niuwa.p2p.vo.customerservice.CustomerServiceJobUserVo;

@MyBatisDao
public interface CustServiceUserDao {
    int deleteByPrimaryKey(Long id);

    int insert(CustServiceUser record);

    int insertSelective(CustServiceUser record);

    CustServiceUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CustServiceUser record);

    int updateByPrimaryKey(CustServiceUser record);

    
	/**
	 * 根据手机号查询客户
	 * param Map<String, Object>
	 * return List<CustServiceUser>
	 */
    List<CustServiceUser> getCustServiceUseByTel(Map<String, Object> paramMap);
    
    /**
	   * 
	   *新增客户
	   * @param parammap
	   *@rerurn  
	   *
	   */
   void addCustServiceUse(Map<String, Object> paramMap);
    
    


    
    List<CustomerServiceJobUserVo> getCustomerWithNoAccout();
    List<CustomerServiceJobUserVo> getAccoutWithOutInvest();
    void insertBatch(List<? extends CustServiceUser> custServiceUsers);
    void updateBatch(List<CustServiceUser> custServiceUsers);
    List<CustServiceUser> getCustServiceAndCustomerWithTel();
    
    
    

    
    /**
     * 客服客户列表
     * @param map
     * @return
     */
    List<CustServiceUser> getCustServiceList(Map map);
    
    /**
     * 客服客户列表记录条数
     * @param map
     * @return
     */
    Integer getCustServiceListCount(Map map);
    
    /**
     * 根据相关条件查询，如电话号tel,姓名custName,证件号certNo等等
     * @param map
     * @return
     */
    List<CustServiceUser> selectByMap(Map map);

}